package com.xinlong.job;

import com.xinlong.service.Ordersservice;
import com.xinlong.service.productservice;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

public class ProductJob implements Job {
    @Autowired
    private productservice productservice;


    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("执行了");
        productservice.updateStatus();
    }
}
